package Collection;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionRetainAll {
    public static void main(String[] args) {
        Collection arr = new ArrayList();
        Collection arra = new ArrayList();
        arr.add("a");
        arr.add("b");
        arr.add("c");
        arra.add("a");
        arra.add("A");
        System.out.println("arr"+arr);
        System.out.println("arra"+arra);
        boolean boo = arr.retainAll(arra);
        System.out.println("boo" + boo);
        System.out.println("arr"+arr);
    }
}
